home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / fax / src / port / svr4 / defs next >
Text File  |  1994-08-01  |  10KB  |  327 lines

  1. #    $Header: /usr/people/sam/fax/port/svr4/RCS/defs,v 1.21 1994/03/29 01:07:30 sam Rel $
  2. #
  3. # FlexFAX Facsimile Software
  4. #
  5. # Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994 Sam Leffler
  6. # Copyright (c) 1991, 1992, 1993, 1994 Silicon Graphics, Inc.
  7. # Permission to use, copy, modify, distribute, and sell this software and 
  8. # its documentation for any purpose is hereby granted without fee, provided
  9. # that (i) the above copyright notices and this permission notice appear in
  10. # all copies of the software and related documentation, and (ii) the names of
  11. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  12. # publicity relating to the software without the specific, prior written
  13. # permission of Sam Leffler and Silicon Graphics.
  14. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  15. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  16. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  17. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  18. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  19. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  21. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  22. # OF THIS SOFTWARE.
  23. #
  24.  
  25. #
  26. # These definitions are for building the software on a Intel 386 PC
  27. # under System V Release 4 using gcc 2.3.3 and libg++2.3.
  28. #
  29. # TARGET:    svr4
  30. # COMPILER:    gcc
  31. #
  32. SHELL    = /bin/sh
  33. DESTDIR    = .
  34. NULL    =
  35. MAKEFILE= Makefile
  36.  
  37. #
  38. # Location of auxiliary stuff needed for SVR4
  39. #
  40. PORT    = ${DEPTH}/port/svr4
  41. GENERIC    = ${DEPTH}/port/generic
  42. #
  43. # Basic tools used in the build process.
  44. #
  45. C++    = ${TOOLROOT}/usr/local/bin/gcc
  46. CC    = ${TOOLROOT}/usr/local/bin/gcc
  47.  
  48. NAWK    = ${TOOLROOT}/usr/bin/nawk
  49. INSTALL    = sh ${PORT}/install.sh
  50. MKDEPEND= ${GENERIC}/mkdepend
  51. AR    = ${TOOLROOT}/usr/ccs/bin/ar
  52. RANLIB    = ${TOOLROOT}/bin/echo
  53. SED    = ${TOOLROOT}/bin/sed
  54.  
  55. #
  56. # AR options for creating/updating an archive
  57. #
  58. AROPTS=    crs
  59.  
  60. #
  61. # Special options for lptops compilation (yech).
  62. #
  63.  
  64. #
  65. # We wants System V-style getty support.
  66. #
  67. SYSGETTY=GettySysV.c++
  68.  
  69. #
  70. # and we want System V-style UUCP lock support.
  71. #
  72. UUCP_LOCKDIR=/var/spool/locks
  73. UUCP_LOCKTYPE=0
  74. UUCP_LOCKMODE=0444
  75.  
  76. #
  77. # Location of Adobe Font Metrics for lptops.
  78. #
  79. AFMDIR=/usr/local/lib/ghostscript/fonts/
  80.  
  81. #
  82. # PostScript imager for server.  PSPACKAGE is one of:
  83. #
  84. # dps    for Display Postscript
  85. # gs    for Ghostscript
  86. #
  87. # and PSIMAGER is the pathname of the binary executable.
  88. #
  89. PSPACKAGE=gs
  90. PSIMAGER=/usr/local/bin/gs
  91.  
  92. #
  93. # Mail program for sending notification messages.
  94. #
  95. SENDMAIL=/usr/ucblib/sendmail
  96.  
  97. #
  98. # Default optimizer and prototype options
  99. #
  100. # -g is broken for SVR4 on g++ 2.3.3
  101. # -Qn is required to avoid assembler coredumps on certain files
  102. #
  103. OPTIMIZER=-O -Qn
  104. PROTOTYPES=
  105. CVERSION= -D__ANSI_CPP__
  106. C++FILE=-x c++
  107.  
  108. # default definitions for programs--overide them as desired
  109. LIBS=    ${LIBUTIL} ${LIBTIFF} ${LIBIV} ${LIBPORT}
  110. LLDLIBS=${LIBS} ${MACHDEPLIBS}
  111. #
  112. # Override this definition to eliminate shared library use.
  113. #
  114. SHDLIBC=
  115.  
  116. #
  117. # Libraries that may vary from machine to machine (especially if
  118. # you use GNU GCC instead of AT&T C++).
  119. #
  120. # -lucb follows -lc only for strcasecmp strncasecmp mkstemp
  121. # -lelf required on Solaris 2; doesn't hurt to keep on other flavors
  122. MACHDEPLIBS=-lg++ -lsocket -lnsl -lc -L/usr/ucblib -lucb -lelf
  123. #
  124. # You must have v3.0 or newer of the TIFF library.  If
  125. # you already have it installed, or if you have version 3.0
  126. # or newer of InterViews installed (which includes the TIFF
  127. # library), you can point these to those places.  Otherwise,
  128. # you can just use the code provided here.
  129. #
  130. TIFF=    ${DEPTH}/libtiff
  131. LIBTIFF=${TIFF}/libtiff.a
  132. #
  133. # If you already have InterViews 3.0 or newer installed,
  134. # define these to be something like:
  135. #
  136. #IV=    /usr/include
  137. #LIBIV=    /usr/lib/libIV.a
  138. # Otherwise you can just use the subset of classes used by
  139. # the fax software and collected here in a hacked-up library.
  140. #
  141. IV=    ${DEPTH}/iv
  142. LIBIV=    ${IV}/libivhack.a
  143. # random utility functions and classes
  144. UTIL=    ${DEPTH}/util
  145. LIBUTIL=${UTIL}/libfaxutil.a
  146. LIBPORT=${PORT}/libport.a
  147.  
  148. #
  149. # Uid&Gid for installing server stuff.  Note that the server process
  150. # proper (/usr/etc/faxd or similar) must either run setuid root or
  151. # setuid uucp (i.e. fax and uucp must have the same uid).  This is
  152. # so that the fax server can participate in the UUCP locking scheme
  153. # and thereby implement tty line sharing (i.e. share the same line
  154. # and modem for both fax and data).
  155. #
  156. FAXUSER=uucp
  157. FAXGROUP=uucp
  158.  
  159. #
  160. # Directories where stuff gets placed:
  161. #
  162. # BIN        client-directed applications
  163. # LIBDATA    client-directed application library data files
  164. # LIBEXEC    client-directed application library executables
  165. # SPOOL        spooling area for servers
  166. # DOC        non-manual documentation
  167. # USRETC    place for servers (faxd & faxd.recv)
  168. #
  169. BIN=    /usr/local/bin
  170. LIBDATA=/usr/local/lib/fax
  171. LIBEXEC=/usr/local/lib/fax
  172. DOC=    /usr/local/doc/flexfax
  173. USRETC=    /usr/local/sbin
  174.  
  175. SPOOL=    /var/spool/fax
  176. #
  177. # Manual-related controls:
  178. #
  179. # MAN        head of manual tree
  180. # MANAPP    subdirectory for stuff in BIN
  181. # MANSYS    subdirectory for server & server-related apps
  182. # MANFILES    subdirectory for file format info 
  183. # PAGEDIRT    temp files to remove on clean/clobber
  184. #
  185. MAN    = /usr/local/man
  186.  
  187. MANAPPS    = man1
  188. MANSYS    = man1
  189. MANFILES= man4
  190.  
  191. NROFF    = /usr/ucb/nroff
  192. COMPRESS= compress
  193.  
  194. MANCAPP    = ${CLIENTAPPS}
  195. MANCFILE= ${CLIENTFILES}
  196. MANSAPP    = ${SERVERAPPS}
  197. MANSFILE= ${SERVERFILES}
  198. PAGEDIRT=
  199.  
  200. # programs used during installation
  201. ECHO=    /bin/echo
  202. FTR=    /usr/sbin/ftr
  203. GREP=    /bin/grep
  204. RM=    /bin/rm
  205. KILLALL=/etc/killall
  206. PWD=    /bin/pwd
  207. CHROOT=    /etc/chroot
  208.  
  209. #
  210. # Definitions used by common rules.
  211. #
  212. COMMONRULES=${DEPTH}/rules
  213. COMMONTARGS= clobber clean rmtargets depend incdepend
  214.  
  215. #
  216. # C compiler flags are composed of variable (set on the command line),
  217. # local (defined in the makefile), and global (defined in this file)
  218. # parts, in that order.  This ordering is used so that variable or
  219. # locally specified include directories are searched before the globally
  220. # specified ones.
  221. #
  222. CFLAGS=    ${CVERSION} ${VCFLAGS} ${LCFLAGS} ${GCFLAGS}
  223.  
  224. VCFLAGS=${VCDEFS} ${VCINCS} ${VCOPTS}
  225. LCFLAGS=${LCDEFS} ${LCINCS} ${LCOPTS}
  226. GCFLAGS=${GCDEFS} ${GCINCS} ${GCOPTS}
  227.  
  228. COPTS=    ${VCOPTS} ${LCOPTS} ${GCOPTS}
  229. CDEFS=    ${VCDEFS} ${LCDEFS} ${GCDEFS}
  230. CINCS=    ${VCINCS} ${LCINCS} ${GCINCS}
  231.  
  232. GCOPTS=${OPTIMIZER} ${PROTOTYPES}
  233. GCDEFS=-Dsvr4
  234. GCINCS=    -I. -I${DEPTH} -I${PORT} -I${GENERIC} -I${UTIL} -I${TIFF}
  235. #
  236. # C++ flags are decomposed using the same hierarchy as C flags.
  237. #
  238. C++FLAGS=${CVERSION} ${VC++FLAGS} ${LC++FLAGS} ${GC++FLAGS}
  239.  
  240. VC++FLAGS=${VC++DEFS} ${VC++INCS} ${VC++OPTS}
  241. LC++FLAGS=${LC++DEFS} ${LC++INCS} ${LC++OPTS}
  242. GC++FLAGS=${GC++DEFS} ${GC++INCS} ${GC++OPTS}
  243.  
  244. C++OPTS=${VC++OPTS} ${LC++OPTS} ${GC++OPTS}
  245. C++DEFS=${VC++DEFS} ${LC++DEFS} ${GC++DEFS}
  246. C++INCS=${VC++INCS} ${LC++INCS} ${GC++INCS}
  247.  
  248. GC++OPTS=${OPTIMIZER}
  249. GC++INCS=-I. -I${DEPTH} -I${PORT} -I${GENERIC} -I${UTIL} -I${IV} -I${TIFF}
  250. GC++DEFS=-Dsvr4
  251.  
  252. #
  253. # Loader flags, composed of library (-l's) and option parts, with
  254. # the libraries appearing last.  Both of these are divided into variable,
  255. # local, and global parts.  The composition of LDFLAGS is done in the
  256. # other "direction" from CFLAGS so that all the -L's, that are part of
  257. # LDOPTS, appear before any of the -l's, which are part of LDLIBS.
  258. # Another benefit of segregating the libraries from the remaining of the
  259. # loader options is that the libraries alone can easily be given to
  260. # another program, e.g., lint.
  261. #
  262. # Notes:
  263. #   - If a program should not be linked with the shared version of libc,
  264. #     then its make file should override the setting of SHDLIBC with a
  265. #     line such as "SHDLIBC=".
  266. #
  267. LDFLAGS=${LDOPTS} ${LDLIBS}
  268.  
  269. LDOPTS=${VLDOPTS} ${LLDOPTS} ${GLDOPTS}
  270. LDLIBS=${VLDLIBS} ${LLDLIBS} ${GLDLIBS}
  271.  
  272. GLDOPTS=
  273. GLDLIBS=${SHDLIBC}
  274.  
  275. #
  276. # Convenient command macros that include the flags macros.
  277. #
  278. C++F=    ${C++} ${C++FLAGS}
  279. CCF=    ${CC} ${CFLAGS}
  280.  
  281. #
  282. # Shell script for generating make dependencies.  MKDEPEND is a shorthand
  283. # for the tool's absolute pathname.  MKDEPENDC adds MKDEPCFLAGS and the -c
  284. # mkdepend option to this.  The other language's mkdepend variables try to
  285. # include their language's name in the variable names.  Unfortunately, a
  286. # lot of makefiles already use the nondescript LMKDEPFLAGS for C language
  287. # mkdepend options, so we initialize LMKDEPCFLAGS with ${LMKDEPFLAGS}.
  288. #
  289. MKDEPENDC++    =${MKDEPEND} ${MKDEPC++FLAGS} -c "${C++F} ${C++FILE} -M"
  290. MKDEPENDC    =${MKDEPEND} ${MKDEPCFLAGS} -c "${CCF} -M"
  291.  
  292. MKDEPC++FLAGS    =${VMKDEPC++FLAGS} ${LMKDEPC++FLAGS} ${GMKDEPC++FLAGS}
  293. MKDEPCFLAGS    =${VMKDEPCFLAGS} ${LMKDEPCFLAGS} ${GMKDEPCFLAGS}
  294. LMKDEPCFLAGS    =${LMKDEPFLAGS}
  295.  
  296. GMKDEPFLAGS    =-e 's@ ${INCLDIR}/@ $${INCLDIR}/@' -e 's@ ${ROOT}/@ $${ROOT}/@'
  297. GMKDEPC++FLAGS    =${GMKDEPFLAGS} -s C++ -e 's@\.c++\.o *: @\.o: @'
  298. GMKDEPCFLAGS    =${GMKDEPFLAGS}
  299.  
  300. #
  301. # Macro to add to LMKDEPCFLAGS or LMKDEPC++FLAGS if your makefile builds
  302. # single-source programs using null suffix rules (e.g., .c:}.  This option
  303. # works for both C and C++ make depend.
  304. #
  305. NULLSUFFIX_MKDEPFLAG=-e 's@\.o+*:@:@'
  306. #
  307. # MKDEPFILE is the name of the dependency database, included by rules.
  308. #
  309. MKDEPFILE=Makedepend
  310. #
  311. # CDEPFILES lists all C or cc-compiled source files that depend on header
  312. # files computable by ${MKDEPENDC}.  C++DEPFILES lists all C++ files having
  313. # dependencies computable by ${MKDEPENDC++}.
  314. #
  315. C++DEPFILES=${C++FILES}
  316. CDEPFILES=${CFILES}
  317. DEPFILES=${C++DEPFILES} ${CDEPFILES}
  318.  
  319. #
  320. # Directory shorthands, mainly for make depend (see GMKDEPFLAGS above).
  321. #
  322. INCLDIR    =${ROOT}/usr/include
  323.